<?php
$tittleText = "购物车({$pay_car_count})";
$tittle_r_text = '编辑';
$tittle_r_script = "goto_pay_car(102,{$InputData['back_level']})";
require("{$CfgPara->root}/view/tittle_back_bar_blue2.app.v.php");
?>
<?php
if ($pay_car_count > 0) {
    $pay_car_total = 0;
    foreach ($pay_car_list as $pay_car_item) {
        // 计算列表的合计金额
        $pay_car_total += $pay_car_item->Price;
        ?>
        <div class="app-content-divider"></div>
        <div class="app-border-top" style="padding: 20px 10px 18px 5px">
            <div style="width: 100%">
                <i class="am-icon-shopping-cart app-main-color am-fl" style="width: 3em; text-align: center"></i>
                <b class="app-gray-color"><?= $pay_car_item->Tittle ?></b>
                <span class="am-fr app-gray-color">￥<?= $pay_car_item->Price ?></span>
            </div>
            <div style="width: 100%; padding: 5px 0 0 3.3em">
                <span class="app-gray-color"><?= $pay_car_item->ContentText ?></span>
            </div>
        </div>
        <?php
    }
    ?>
    <div class="app-border-top" style="height: 43px"></div>
    <?php
    require("{$CfgPara->root}/view/user_pay_car_account.app.v.php");
} else {
    $warningText = '您的购物车空啦，赶紧添加吧';
    require("{$CfgPara->root}/view/warning_text.app.v.php");
}
?>
